import {Tooltip} from 'antd';

const initialState = {
    roleList: [
        {value: "BOSS", label: "老板"},
        {value: "CUSTOMER", label: "客服"}
    ],
    transportType: [
        {value: '零担', label: '零担'},
        {value: '整车', label: '整车'},
        {value: '空运', label: '空运'}
    ],
    serviceType: [
        {value: '送货上门', label: '送货上门'},
        {value: '送货上楼', label: '送货上楼'},
        {value: '免费自提', label: '免费自提'}
    ],
    packageType: [
        {value: '木箱', label: '木箱'},
        {value: '托盘', label: '托盘'},
        {value: '纸箱', label: '纸箱'}
    ],
    calculateType: [
        {value: 'QUANTITY', label: '数量'},
        {value: 'VOLUME', label: '体积'},
        {value: 'WEIGHT', label: '重量'},
        {value: 'FIXED', label: '固定值'}
    ],
    vehicleType: [
        {value: '4.2', label: '4米2'},
        {value: '7.6', label: '7米6'},
        {value: '9.6', label: '9米6'},
        {value: '13.5', label: '13米5'},
        {value: '16.5', label: '16米5'},
        {value: '17.5', label: '17米5'}
    ],
    paymentType: [
        {value: '日结', label: '日结'},
        {value: '月结', label: '月结'}
    ],
    receiptStatusList: [
        {value: '未回', label: '未回'},
        {value: '已回', label: '已回'}
    ],
    departureWarning: [
        {value: '正常', label: '正常'},
        {value: '异常', label: '异常'}
    ],
    deliveryWarning: [
        {value: '正常', label: '正常'},
        {value: '异常', label: '异常'}
    ],
    timeoutWarning: [
        {value: '正常', label: '正常'},
        {value: '异常', label: '异常'}
    ],

    exceptionList: [
        {value: '破损', label: '破损'},
        {value: '丢失', label: '丢失'},
        {value: '受潮', label: '受潮'},
        {value: '服务', label: '服务'},
        {value: '操作', label: '操作'},
    ],
    feeDeclareStatus: [
        {value: 'SUBMITTED', label: '已提交'},
        {value: 'PASSED', label: '已通过'},
        {value: 'DONE', label: '已完成'},
        {value: 'REJECTED', label: '已驳回'}
    ],
    trackType: [
        {value: '揽件', label: '揽件'},
        {value: '发往', label: '发往'},
        {value: '到达', label: '到达'},
        {value: '签收', label: '签收'},
        {value: '派送', label: '派送'},
        {value: '其他', label: '其他'}
    ],
    orderFollowStatus: [
        {value: '已收到资料', label: '已收到资料'},
        {value: '已转送审核', label: '已转送审核'},
        {value: '已审核完成', label: '已审核完成'}
    ],
    invoiceStatusList: [
        {value: '未开票', label: '未开票'},
        {value: '已开票', label: '已开票'}
    ],
    zadOrderStatusList: [
        {value: false, label: '已完成'},
        {value: true, label: '未完成'}
    ],
    settlementStatusList: [
        {value: '未结算', label: '未结算'},
        {value: '已结算', label: '已结算'}
    ],
    orderFollowStatusList: ['已收到资料', '已转送审核', '已审核完成'],
    unitList: [
        {value: '40HQ', label: '40HQ'},
        {value: '20HQ', label: '20HQ'},
        {value: '票', label: '票'},
        {value: 'KG', label: 'KG'}
    ],
    cabinetTypeList: ['40HQ', '30HQ', '20HQ', '10HQ'],
    FeeTypeList: [
        {value: '应收', label: '应收'},
        {value: '应付', label: '应付'}
    ],
    packageReturnType: [
        {value: 'UN_RETURN', label: '未还'},
        {value: 'RETURNED', label: '已还'}
    ],
    customsTypeList: [],
    financialReportColumns: [
        {value: 'deliveryDate', label: '发货日期', type: 'dateTime'},
        {value: 'clientName', label: '客户名称'},
        {value: 'cindaNo', label: '先达单号', clickable: true},
        {value: 'from', label: '始发信息', type: 'address'},
        {value: 'to', label: '目的信息', type: 'address'},
        {value: 'vehicleType', label: '车型'},
        {value: 'projectNo', label: '项目号'},
        {value: 'inFeeAmount', label: '应收运费', type: 'money'},
        {value: 'transportChannel', label: '走货渠道'},
        {value: 'outFeeAmount', label: '应付金额', type: 'money'},
        {value: 'salesFee', label: '销售费用', type: 'money'},
        {value: 'profit', label: '利润', type: 'money'}
    ],
    orderColumns: [
        {value: 'cindaNo', label: '先达单号', clickable: true},
        {value: 'clientName', label: '客户名称'},
        {value: 'deliveryDate', label: '发货日期', type: 'dateTime'},
        {value: 'from', label: '始发信息', type: 'address'},
        {value: 'to', label: '目的信息', type: 'address'},
        {value: 'projectNo', label: '项目号'},
        {value: 'packageType', label: '包装方式'},
        {value: 'itemCount', label: '件数'},
        {value: 'volume', label: '总体积(m³)', type: 'number'},
        {value: 'weight', label: '总重量(KG)', type: 'number'},
        {value: 'transportType', label: '运输模式'},
        {value: 'vehicleType', label: '车型/m'},
        {value: 'transportChannel', label: '走货渠道'},
        {value: 'transportNo', label: '走货单号'},
        {value: 'createTime', label: '录单日期', type: 'dateTime'}
    ],
    feeDeclareColumns: [
        {value: 'cindaNo', label: '先达单号', clickable: true},
        {value: 'clientName', label: '客户'},
        {value: 'deliveryNo', label: '发货单号'},
        {value: 'deliveryDate', label: '发货日期', type: 'dateTime'},
        {value: 'from', label: '始发信息', type: 'address'},
        {value: 'to', label: '目的信息', type: 'address'},
        {value: 'receiveMan', label: '发货人'},
        {value: 'inCome', label: '应收运费', type: 'money'},
        {value: 'transportChannel', label: '走货渠道'},
        {value: 'createTime', label: '创建时间', type: 'dateTime'},
        {value: 'status', label: '状态', type: 'feeDeclareEnum'},
        {value: 'feeItem', label: '费用项目'},
        {value: 'money', label: '金额', type: 'money'},
        {value: 'person', label: '申请人'}
    ],
    profileColumns: [
        {value: 'name', label: '简称', clickable: true},
        {value: 'province', label: '省'},
        {value: 'city', label: '市'},
        // {value: 'street', label: '区'},
        {value: 'fullAddress', label: '详细地址'},
        {value: 'contactMan', label: '联系人'},
        {value: 'contactPhone', label: '联系人电话'},
        {value: 'company', label: '全称(公司)'}
    ],
    menuColumns: [
        {value: '首页', label: '首页'},
        {value: '订单中心', label: '订单中心'},
        {value: '集装箱业务', label: '集装箱业务'},
        {value: '运输业务', label: '运输业务'},
        {value: '中欧/东南亚班列', label: '中欧/东南亚班列'},
        {value: '综合物流', label: '综合物流'},
        {value: '拼箱订单', label: '拼箱订单'},
        {value: '账单业务', label: '账单业务'},
        {value: '中欧/东南亚班列账单', label: '中欧/东南亚班列账单'},
        {value: '中欧/东南亚班列应收', label: '中欧/东南亚班列应收'},
        {value: '中欧/东南亚班列应付', label: '中欧/东南亚班列应付'},
        {value: '综合物流账单', label: '综合物流账单'},
        {value: '综合物流应收', label: '综合物流应收'},
        {value: '综合物流应付', label: '综合物流应付'},
        {value: '客户管理', label: '客户管理'},
        {value: '供应商管理', label: '供应商管理'},
        {value: '日志追踪', label: '日志追踪'},
        {value: '公共汇率管理', label: '公共汇率管理'},
        {value: '业务类型管理', label: '业务类型管理'},
        {value: '系统公告管理', label: '系统公告管理'},
        {value: '费用科目管理', label: '角色管理'},
        {value: '角色管理', label: '角色管理'},
        {value: '组织机构', label: '组织机构'}
    ],

    checkData: [
        {value: '订单量', label: '订单量'},
        {value: '上月单量数据', label: '上月单量数据'},
        {value: '营收', label: '营收'},
        {value: '上月营收数据', label: '上月营收数据'},
        {value: '内部公告', label: '内部公告'},
        {value: '班列订单未完成', label: '班列订单未完成'},
        {value: '应收未开票', label: '应收未开票'},
        {value: '应收未结算', label: '应收未结算'},
        {value: '应付未开票', label: '应付未开票'},
        {value: '应付未结算', label: '应付未结算'}
    ],

    treeData: [
        // 首页必须有
        /*{
            title: '首页',
            value: '首页',
            key: '首页'
        },*/
        {
            title: '订单中心',
            value: '订单中心',
            key: '订单中心',
            children: [
                {
                    title: '订单中心-集装箱管理',
                    value: '订单中心-集装箱管理',
                    key: '订单中心-集装箱管理',
                },
                {
                    title: '订单中心-运输业务',
                    value: '订单中心-运输业务',
                    key: '订单中心-运输业务',
                    children: [
                        {
                            title: '订单中心-运输业务-国际班列',
                            value: '订单中心-运输业务-国际班列',
                            key: '订单中心-运输业务-国际班列',
                        },
                        {
                            title: '订单中心-运输业务-综合物流',
                            value: '订单中心-运输业务-综合物流',
                            key: '订单中心-运输业务-综合物流',
                        }
                    ]
                }, {
                    title: '订单中心-拼箱订单',
                    value: '订单中心-拼箱订单',
                    key: '订单中心-拼箱订单'
                }
            ]
        }, {
            title: '客户管理',
            value: '客户管理',
            key: '客户管理'
        }, {
            title: '供应商管理',
            value: '供应商管理',
            key: '供应商管理'
        }, {
            title: '账务管理',
            value: '账务管理',
            key: '账务管理',
            children: [
                {
                    title: '账务管理-国际班列账单',
                    value: '账务管理-国际班列账单',
                    key: '账务管理-国际班列账单',
                    children: [
                        {
                            title: '账务管理-国际班列账单-国际班列应收',
                            value: '账务管理-国际班列账单-国际班列应收',
                            key: '账务管理-国际班列账单-国际班列应收',
                        },
                        {
                            title: '账务管理-国际班列账单-国际班列应付',
                            value: '账务管理-国际班列账单-国际班列应付',
                            key: '账务管理-国际班列账单-国际班列应付',
                        }
                    ]
                },
                {
                    title: '账务管理-综合物流账单',
                    value: '账务管理-综合物流账单',
                    key: '账务管理-综合物流账单',
                    children: [
                        {
                            title: '账务管理-综合物流账单-综合物流应收',
                            value: '账务管理-综合物流账单-综合物流应收',
                            key: '账务管理-综合物流账单-综合物流应收',
                        },
                        {
                            title: '账务管理-综合物流账单-综合物流应付',
                            value: '账务管理-综合物流账单-综合物流应付',
                            key: '账务管理-综合物流账单-综合物流应付',
                        }
                    ]
                }
            ]
        },
        {
            title: '统计分析',
            value: '统计分析',
            key: '统计分析',
            children: [
                /*{
                    title: '统计分析-国际班列',
                    value: '统计分析-国际班列',
                    key: '统计分析-国际班列',
                },
                {
                    title: '统计分析-综合物流',
                    value: '统计分析-综合物流',
                    key: '统计分析-综合物流',
                },*/
                {
                    title: '统计分析-项目数据汇总表',
                    value: '统计分析-项目数据汇总表',
                    key: '统计分析-项目数据汇总表',
                },
                {
                    title: '统计分析-班列业务分析',
                    value: '统计分析-班列业务分析',
                    key: '统计分析-班列业务分析',
                },
                {
                    title: '统计分析-业务量分析图',
                    value: '统计分析-业务量分析图',
                    key: '统计分析-业务量分析图',
                },
                {
                    title: '统计分析-数量盈利分析表',
                    value: '统计分析-数量盈利分析表',
                    key: '统计分析-数量盈利分析表',
                },
                {
                    title: '统计分析-价格分析表',
                    value: '统计分析-价格分析表',
                    key: '统计分析-价格分析表',
                },
                {
                    title: '统计分析-操作情况',
                    value: '统计分析-操作情况',
                    key: '统计分析-操作情况',
                }
            ]
        },
        {
            title: '基础信息维护',
            value: '基础信息维护',
            key: '基础信息维护',
            children: [
                {
                    title: '基础信息维护-公共汇率管理',
                    value: '基础信息维护-公共汇率管理',
                    key: '基础信息维护-公共汇率管理'
                }, {
                    title: '基础信息维护-业务类型管理',
                    value: '基础信息维护-业务类型管理',
                    key: '基础信息维护-业务类型管理'
                }, {
                    title: '基础信息维护-费用科目管理',
                    value: '基础信息维护-费用科目管理',
                    key: '基础信息维护-费用科目管理'
                }, {
                    title: '基础信息维护-车型管理',
                    value: '基础信息维护-车型管理',
                    key: '基础信息维护-车型管理'
                }, {
                    title: '基础信息维护-货物品类维护',
                    value: '基础信息维护-货物品类维护',
                    key: '基础信息维护-货物品类维护'
                }, {
                    title: '基础信息维护-报关方式维护',
                    value: '基础信息维护-报关方式维护',
                    key: '基础信息维护-报关方式维护'
                }, {
                    title: '基础信息维护-线路维护',
                    value: '基础信息维护-线路维护',
                    key: '基础信息维护-线路维护'
                }, {
                    title: '基础信息维护-口岸信息维护',
                    value: '基础信息维护-口岸信息维护',
                    key: '基础信息维护-口岸信息维护'
                }, {
                    title: '基础信息维护-收款银行信息维护',
                    value: '基础信息维护-收款银行信息维护',
                    key: '基础信息维护-收款银行信息维护'
                }
            ]
        },
        {
            title: '组织架构',
            value: '组织架构',
            key: '组织架构',
            children: [
                {
                    title: '组织架构-组织管理',
                    value: '组织架构-组织管理',
                    key: '组织架构-组织管理'
                }, {
                    title: '组织架构-角色管理',
                    value: '组织架构-角色管理',
                    key: '组织架构-角色管理'
                }
            ]
        },
        {
            title: '系统管理',
            value: '系统管理',
            key: '系统管理',
            children: [
                {
                    title: '系统管理-操作日志',
                    value: '系统管理-操作日志',
                    key: '系统管理-操作日志'
                }, {
                    title: '系统管理-系统通知',
                    value: '系统管理-系统通知',
                    key: '系统管理-系统通知'
                }
            ]
        },
        {
            title: '历史数据',
            value: '历史数据',
            key: '历史数据',
            children: [
                {
                    title: '历史数据-国际班列',
                    value: '历史数据-国际班列',
                    key: '历史数据-国际班列',
                    children: [
                        {
                            title: '历史数据-国际班列-应收',
                            value: '历史数据-国际班列-应收',
                            key: '历史数据-国际班列-应收'
                        }, {
                            title: '历史数据-国际班列-应付',
                            value: '历史数据-国际班列-应付',
                            key: '历史数据-国际班列-应付'
                        }
                    ]
                }, {
                    title: '历史数据-综合物流',
                    value: '历史数据-综合物流',
                    key: '历史数据-综合物流',
                    children: [
                        {
                            title: '历史数据-综合物流-应收',
                            value: '历史数据-综合物流-应收',
                            key: '历史数据-综合物流-应收'
                        }, {
                            title: '历史数据-综合物流-应付',
                            value: '历史数据-综合物流-应付',
                            key: '历史数据-综合物流-应付'
                        }
                    ]
                },
            ]
        }
    ],

    zadOrderColumns: [
        {value: 'orderNumber', label: '订单编号', clickable: true, width: 150, fixed: 'left', ellipsis: true},
        {value: 'organizationName', label: '所属机构', width: 80, fixed: 'left', ellipsis: true},
        {value: 'clientName', label: '客户', width: 100, fixed: 'left', ellipsis: true},
        {value: 'bookName', label: '订舱人', editable: false, width: 80, ellipsis: true},
        {value: 'bookNumber', label: '订舱号', editable: false, width: 80, ellipsis: true},
        {value: 'cabinetNumber', label: '柜号', editable: true, width: 130, ellipsis: true},
        {value: 'cabinetType', label: '柜型', editable: false, width: 80, ellipsis: true},
        {value: 'businessCode', label: '业务类型', width: 80, ellipsis: true},
        // {value: 'businessNumber', label: '业务编号', editable: false, width: 200},
        {
            value: 'calculateType', label: '计费方式', type: 'enum', dataSource: [
                {value: 'QUANTITY', label: '数量'},
                {value: 'VOLUME', label: '体积'},
                {value: 'WEIGHT', label: '重量'},
                {value: 'FIXED', label: '固定值'}
            ]
            , width: 80, ellipsis: true
        },
        {value: 'pickDate', label: '提货日期', type: 'dateTime', width: 100, ellipsis: true},
        {value: 'pickPlace', label: '提货地点', editable: false, width: 80, ellipsis: true},
        {value: 'quantity', label: '数量', editable: false, inputType: "number", width: 80, ellipsis: true},
        {value: 'volume', label: '货物体积(m³)', editable: false, inputType: "number", width: 120, ellipsis: true},
        {value: 'preDepartureTime', label: '班列日期', type: 'dateTime', width: 100, ellipsis: true},
        {value: 'actDepartureTime', label: '发车日期', type: 'dateTime', width: 100, ellipsis: true},
        {value: 'originPlace', label: '起始站', editable: false, width: 80, ellipsis: true},
        {value: 'destPlace', label: '目的站', editable: false, width: 80, ellipsis: true},
        {value: 'carrierDeparturePort', label: '出境口岸', editable: false, width: 80, ellipsis: true},
        {value: 'customsType', label: '报关方式', editable: false, width: 80, ellipsis: true},
        {value: 'goodsName', label: '货物品类', editable: false, width: 80, ellipsis: true},
        {value: 'goodsDetailName', label: '货物品名', editable: false, width: 80, ellipsis: true},
        {value: 'goodsWeight', label: '货物重量(KG)', editable: false, inputType: "number", width: 80, ellipsis: true},
        // {value: 'orderArriveTime', label: 'ATA到达日期', type: 'dateTime', width: 120},
        {value: 'orderLeaveTime', label: '境外提重日期', type: 'dateTime', width: 100, ellipsis: true},
        {value: 'orderBeyondDays', label: '超期天数', type: 'dateTime', width: 120, ellipsis: true},
        {value: 'userName', label: '创建人', width: 80, ellipsis: true},
        {value: 'createTime', label: '创建时间', width: 120, ellipsis: true},
        {value: 'remark', label: '订单备注', width: 80, ellipsis: true},
        {value: 'billRemark', label: '账单备注', width: 80, ellipsis: true}
    ],

    zadOrderReceivableColumns: [
        {value: 'orderNumber', label: '订单编号', clickable: true, width: 150, fixed: 'left', ellipsis: true},
        {value: 'organizationName', label: '所属机构', width: 80, fixed: 'left', ellipsis: true},
        {value: 'clientName', label: '客户', width: 80, ellipsis: true},
        {value: 'bookName', label: '订舱人', editable: false, width: 80, ellipsis: true},
        {value: 'bookNumber', label: '订舱号', editable: false, width: 80, ellipsis: true},
        {value: 'cabinetNumber', label: '柜号', editable: true, width: 130, ellipsis: true},
        {value: 'businessCode', label: '业务类型', width: 80, ellipsis: true},
        // {value: 'businessNumber', label: '业务编号', editable: false, width: 200},
        {
            value: 'calculateType', label: '计费方式', type: 'enum', dataSource: [
                {value: 'QUANTITY', label: '数量'},
                {value: 'VOLUME', label: '体积'},
                {value: 'WEIGHT', label: '重量'},
                {value: 'FIXED', label: '固定值'}
            ]
            , width: 80, ellipsis: true
        },
        {value: 'pickDate', label: '提货日期', type: 'dateTime', width: 100, ellipsis: true},
        {value: 'pickPlace', label: '提货地点', editable: false, width: 80, ellipsis: true},
        {value: 'quantity', label: '数量', editable: false, inputType: "number", width: 80, ellipsis: true},
        {value: 'volume', label: '货物体积(m³)', editable: false, inputType: "number", width: 80, ellipsis: true},
        {value: 'cabinetType', label: '柜型', editable: false, width: 80, ellipsis: true},
        {value: 'preDepartureTime', label: '班列日期', type: 'dateTime', width: 100, ellipsis: true},
        {value: 'actDepartureTime', label: '发车日期', type: 'dateTime', width: 100, ellipsis: true},
        {value: 'originPlace', label: '起始站', editable: false, width: 80, ellipsis: true},
        {value: 'destPlace', label: '目的站', editable: false, width: 80, ellipsis: true},
        {value: 'carrierDeparturePort', label: '出境口岸', editable: false, width: 80, ellipsis: true},
        {value: 'customsType', label: '报关方式', editable: false, width: 80, ellipsis: true},
        {value: 'goodsName', label: '货物品类', editable: false, width: 80, ellipsis: true},
        {value: 'goodsDetailName', label: '货物品名', editable: false, width: 80, ellipsis: true},
        {value: 'goodsWeight', label: '货物重量(KG)', editable: false, inputType: "number", width: 80, ellipsis: true},
        // {value: 'orderArriveTime', label: 'ATA到达日期', type: 'dateTime', width: 120},
        {value: 'orderLeaveTime', label: '境外提重日期', type: 'dateTime', width: 100, ellipsis: true},
        {value: 'orderBeyondDays', label: '超期天数', width: 120, ellipsis: true},
        {value: 'userName', label: '创建人', width: 80, ellipsis: true},
        {value: 'createTime', label: '创建时间', width: 160, ellipsis: true},
        {value: 'remark', label: '订单备注', width: 80, ellipsis: true},
        {value: 'billRemark', label: '账单备注', width: 80, ellipsis: true}
    ],

    zadOrderPayableColumns: [
        {value: 'orderNumber', label: '订单编号', clickable: true, width: 150, fixed: 'left', ellipsis: true},
        {value: 'organizationName', label: '所属机构', width: 80, fixed: 'left', ellipsis: true},
        {value: 'bookName', label: '订舱人', editable: false, width: 80, ellipsis: true},
        {value: 'bookNumber', label: '订舱号', editable: false, width: 80, ellipsis: true},
        {value: 'cabinetNumber', label: '柜号', editable: true, width: 130, ellipsis: true},
        {value: 'businessCode', label: '业务类型', width: 80, ellipsis: true},
        // {value: 'businessNumber', label: '业务编号', editable: false, width: 200},
        {
            value: 'calculateType', label: '计费方式', type: 'enum', dataSource: [
                {value: 'QUANTITY', label: '数量'},
                {value: 'VOLUME', label: '体积'},
                {value: 'WEIGHT', label: '重量'},
                {value: 'FIXED', label: '固定值'}
            ]
            , width: 80, ellipsis: true
        },
        {value: 'pickDate', label: '提货日期', type: 'dateTime', width: 100, ellipsis: true},
        {value: 'pickPlace', label: '提货地点', editable: false, width: 80, ellipsis: true},
        {value: 'quantity', label: '数量', editable: false, inputType: "number", width: 80, ellipsis: true},
        {value: 'volume', label: '货物体积(m³)', editable: false, inputType: "number", width: 80, ellipsis: true},
        {value: 'cabinetType', label: '柜型', editable: false, width: 80, ellipsis: true},
        {value: 'preDepartureTime', label: '班列日期', type: 'dateTime', width: 100, ellipsis: true},
        {value: 'actDepartureTime', label: '发车日期', type: 'dateTime', width: 100, ellipsis: true},
        {value: 'carrierName', label: '供应商', width: 80, ellipsis: true},
        {value: 'originPlace', label: '起始站', editable: false, width: 80, ellipsis: true},
        {value: 'destPlace', label: '目的站', editable: false, width: 80, ellipsis: true},
        {value: 'carrierDeparturePort', label: '出境口岸', editable: false, width: 80, ellipsis: true},
        {value: 'customsType', label: '报关方式', editable: false, width: 80, ellipsis: true},
        {value: 'goodsName', label: '货物品类', editable: false, width: 80, ellipsis: true},
        {value: 'goodsDetailName', label: '货物品名', editable: false, width: 80, ellipsis: true},
        {value: 'goodsWeight', label: '货物重量(KG)', editable: false, inputType: "number", width: 80, ellipsis: true},
        {value: 'orderLeaveTime', label: '境外提重日期', type: 'dateTime', width: 100, ellipsis: true},
        {value: 'orderBeyondDays', label: '超期天数', width: 80, ellipsis: true},
        {value: 'userName', label: '创建人', width: 80, ellipsis: true},
        {value: 'createTime', label: '创建时间', width: 160, ellipsis: true},
        {value: 'remark', label: '订单备注', width: 80, ellipsis: true},
        {value: 'billRemark', label: '账单备注', width: 80, ellipsis: true}
    ],
    ghOrderPayableColumns: [
        {value: 'orderNumber', label: '订单编号', clickable: true, width: 150, fixed: 'left'},
        {value: 'organizationName', label: '所属机构', width: 80, fixed: 'left'},
        {value: 'bookNumber', label: '订舱号', width: 100},
        {value: 'businessCode', label: '业务类型', width: 140},
        {
            value: 'calculateType', label: '计费方式', type: 'enum', dataSource: [
                {value: 'QUANTITY', label: '数量'},
                {value: 'VOLUME', label: '体积'},
                {value: 'WEIGHT', label: '重量'},
                {value: 'FIXED', label: '固定值'}
            ]
            , width: 100
        },
        {value: 'pickDate', label: '提货日期', type: 'dateTime', width: 100},
        {value: 'actDepartureTime', label: '发车日期', type: 'dateTime', width: 100},
        {value: 'carrierName', label: '供应商', width: 120},
        {value: 'originPlace', label: '起始站', editable: false, width: 180},
        {value: 'destPlace', label: '目的站', editable: false, width: 180},
        {value: 'quantity', label: '数量', editable: false, inputType: "number", width: 80},
        {value: 'squareNumber', label: '方数(m³)', editable: false, inputType: "number", width: 100},
        {value: 'grossWeight', label: '毛重(KG)', editable: false, inputType: "number", width: 120},
        {value: 'pb', label: '重泡比', editable: false, inputType: "number", width: 120, render: text => "1:" + text},
        {value: 'volumeWeight', label: '体积重(KG)', editable: false, inputType: "number", width: 120},
        {value: 'vehicleType', label: '提货车型', editable: false, width: 120},
        {value: 'vehicleLine', label: '提货线路', editable: false, width: 150, ellipsis: true},
        {value: 'deliveryModel', label: '派送车型', editable: false, width: 120},
        {value: 'deliveryLine', label: '派送线路', editable: false, width: 150, ellipsis: true},
        {value: 'deliveryModelRemark', label: '派送备注', editable: false, width: 150, ellipsis: true},
        {value: 'receiveDate', label: '派送日期', type: 'dateTime', width: 100},
        {value: 'userName', label: '创建人', width: 120},
        {value: 'createTime', label: '创建时间', width: 160},
        {value: 'remark', label: '订单备注', width: 160, ellipsis: true},
        {value: 'billRemark', label: '账单备注', width: 160, ellipsis: true}
    ],

    ghOrderReceivableColumns: [
        {value: 'orderNumber', label: '订单编号', clickable: true, width: 150, fixed: 'left'},
        {value: 'organizationName', label: '所属机构', width: 80, fixed: 'left'},
        {value: 'bookNumber', label: '订舱号', width: 100},
        {value: 'clientName', label: '客户', width: 80, ellipsis: true},
        {value: 'businessCode', label: '业务类型', width: 80, ellipsis: true},
        {
            value: 'calculateType', label: '计费方式', type: 'enum', dataSource: [
                {value: 'QUANTITY', label: '数量'},
                {value: 'VOLUME', label: '体积'},
                {value: 'WEIGHT', label: '重量'},
                {value: 'FIXED', label: '固定值'}
            ]
            , width: 80, ellipsis: true
        },
        {value: 'pickDate', label: '提货日期', type: 'dateTime', width: 100, ellipsis: true},
        {value: 'actDepartureTime', label: '发车日期', type: 'dateTime', width: 100, ellipsis: true},
        {value: 'originPlace', label: '起始站', editable: false, width: 80, ellipsis: true},
        {value: 'destPlace', label: '目的站', editable: false, width: 80, ellipsis: true},
        {value: 'quantity', label: '数量', editable: false, inputType: "number", width: 80, ellipsis: true},
        {value: 'squareNumber', label: '方数(m³)', editable: false, inputType: "number", width: 80, ellipsis: true},
        {value: 'grossWeight', label: '毛重(KG)', editable: false, inputType: "number", width: 80, ellipsis: true},
        {value: 'pb', label: '重泡比', editable: false, inputType: "number", width: 80, render: text => "1:" + text, ellipsis: true},
        {value: 'volumeWeight', label: '体积重(KG)', editable: false, inputType: "number", width: 80, ellipsis: true},
        {value: 'vehicleType', label: '提货车型', editable: false, width: 80, ellipsis: true},
        {value: 'vehicleLine', label: '提货线路', editable: false, width: 80, ellipsis: true},
        {value: 'deliveryModel', label: '派送车型', editable: false, width: 80, ellipsis: true},
        {value: 'deliveryLine', label: '派送线路', editable: false, width: 80, ellipsis: true},
        {value: 'deliveryModelRemark', label: '派送备注', editable: false, width: 80, ellipsis: true},
        {value: 'receiveDate', label: '派送日期', type: 'dateTime', width: 100, ellipsis: true},
        {value: 'userName', label: '创建人', width: 80, ellipsis: true},
        {value: 'createTime', label: '创建时间', width: 160, ellipsis: true},
        {value: 'remark', label: '订单备注', width: 80, ellipsis: true},
        {value: 'billRemark', label: '账单备注', width: 80, ellipsis: true}
    ],

    ghOrderColumns: [
        {value: 'orderNumber', label: '订单编号', clickable: true, width: 150, fixed: 'left'},
        {value: 'organizationName', label: '所属机构', width: 80, fixed: 'left'},
        {value: 'bookNumber', label: '订舱号', width: 100},
        {value: 'clientName', label: '客户', width: 80, ellipsis: true},
        {value: 'businessCode', label: '业务类型', width: 80, ellipsis: true},
        {
            value: 'calculateType', label: '计费方式', type: 'enum', dataSource: [
                {value: 'QUANTITY', label: '数量'},
                {value: 'VOLUME', label: '体积'},
                {value: 'WEIGHT', label: '重量'},
                {value: 'FIXED', label: '固定值'}
            ]
            , width: 80, ellipsis: true
        },
        {value: 'pickDate', label: '提货日期', type: 'dateTime', width: 100, ellipsis: true},
        {value: 'actDepartureTime', label: '发车日期', type: 'dateTime', width: 100, ellipsis: true},
        {value: 'originPlace', label: '起始站', editable: false, width: 80, ellipsis: true},
        {value: 'destPlace', label: '目的站', editable: false, width: 80, ellipsis: true},
        {value: 'quantity', label: '数量', editable: false, inputType: "number", width: 80, ellipsis: true},
        {value: 'squareNumber', label: '方数(m³)', editable: false, inputType: "number", width: 80, ellipsis: true},
        {value: 'grossWeight', label: '毛重(KG)', editable: false, inputType: "number", width: 80, ellipsis: true},
        {value: 'pb', label: '重泡比', editable: false, inputType: "number", render: text => "1:" + text, width: 80, ellipsis: true},
        {value: 'volumeWeight', label: '体积重(KG)', editable: false, inputType: "number", width: 80, ellipsis: true},
        {value: 'vehicleType', label: '提货车型', editable: false, width: 80, ellipsis: true},
        {
            value: 'vehicleLine',
            label: '提货线路',
            editable: false, width: 80, ellipsis: true
        },
        {value: 'deliveryModel', label: '派送车型', editable: false, width: 80, ellipsis: true},
        {value: 'deliveryLine', label: '派送线路', editable: false, width: 80, ellipsis: true},
        {value: 'deliveryModelRemark', label: '派送备注', editable: false, width: 80, ellipsis: true},
        {value: 'receiveDate', label: '派送日期', type: 'dateTime', width: 100, ellipsis: true},
        {value: 'userName', label: '创建人', width: 80, ellipsis: true},
        {value: 'createTime', label: '创建时间', width: 120, ellipsis: true},
        {value: 'remark', label: '订单备注', width: 80, ellipsis: true}
    ],
};

export default function common(state = initialState, action) {
    if (action.error === true) {
        return state;
    }
    switch (action.type) {
        default:
            return state;
    }
}
